from langchain_openai import ChatOpenAI
import os

api_key = os.getenv("DEEPSEEK_API_KEY")
base_url = os.getenv("DEEPSEEK_BASE_URL")
model_name = os.getenv("DEEPSEEK_MODEL_NAME")

llm = ChatOpenAI(api_key=api_key, base_url=base_url, model_name=model_name)
res = llm.invoke("请讲一个冷笑话")
print(res.content)